{% extends "base_generic.html" %}

{% block title %}
    <title>Local Library - Search Results for "{{ search_word }}"</title>
{% endblock %}

{% block content %}
    <h1>Local Library Home</h1>
    <p>
        Welcome to LocalLibrary, a website developed by
        <em>Mozilla Developer Network</em>!
    </p>
    <h2>Dynamic content</h2>
    <p>Search results for "{{ search_word }}":</p>
    <ul>
        <li><strong>Number of genres containing "{{ search_word }}":</strong> {{ num_genres }}</li>
        <li><strong>Number of books containing "{{ search_word }}":</strong> {{ num_books }}</li>
        <li><strong>Number of available books:</strong> {{ num_instances_available }}</li>
        <li><strong>Total number of book instances:</strong> {{ num_instances }}</li>
        <li><strong>Number of authors:</strong> {{ num_authors }}</li>
        <li><strong>Books:</strong> {{ num_books }}</li>
        <li><strong>Copies:</strong> {{ num_instances }}</li>
        <li><strong>Copies available:</strong> {{ num_instances_available }}</li>
        <li><strong>Authors:</strong> {{ num_authors }}</li>
    </ul>
<p>
  You have visited this page {{ num_visits }} time{{ num_visits|pluralize }}.
</p>
{% endblock %}